/*
 *                        .::::.
 *                      .::::::::.
 *                     :::::::::::
 *                  ..:::::::::::'
 *               '::::::::::::'
 *                 .::::::::::
 *            '::::::::::::::..
 *                 ..::::::::::::.
 *               ``::::::::::::::::
 *                ::::``:::::::::'        .:::.
 *               ::::'   ':::::'       .::::::::.
 *             .::::'      ::::     .:::::::'::::.
 *            .:::'       :::::  .:::::::::' ':::::.
 *           .::'        :::::.:::::::::'      ':::::.
 *          .::'         ::::::::::::::'         ``::::.
 *      ...:::           ::::::::::::'              ``::.
 *     ````':.          ':::::::::'                  ::::..
 *                        '.:::::'                    ':'````..
 *
 * @Author: byx
 * @Date: 2022-09-05 21:55:02
 * @LastEditors: byx
 * @LastEditTime: 2022-09-12 18:43:18
 * @version: 1.0
 * @Descripttion: wwww.byx1024.top
 */
// 定义首页 相关API接口函数
import request from '@/utils/request'

/**
 * 获取品牌
 * @param {Integer} limit - 品牌个数
 * @return Promise
 */
export const findBrand = (limit = 6) => {
  return request('/home/brand', 'get', { limit })
}

/**
 * 获取广告区轮播图
 * @return Promise
 */
export const findBanner = () => {
  return request('/home/banner', 'get')
}

/**
 * 获取新鲜好物
 * @return Promise
 */
export const findNew = () => {
  return request('home/new', 'get')
}

/**
 * 获取人气推荐
 * @return Promise
 */
export const findHot = () => {
  return request('home/hot', 'get')
}

/**
 * 获取商品区块
 * @return Promise
 */
export const findGoods = () => {
  return request('home/goods', 'get')
}

/**
 * 获取最新专题
 * @return Promise
 */
export const findSpecial = () => {
  return request('home/special', 'get')
}
